<template>
  <div class="bb-bg">
    <div class="co-title">
      <div class="co-title-name">
        <img src="@/assets/cockpit/bb4-title.png" alt="">
      </div>
      <div class="co-title-right">
        <div class="co-title-breathe">
          <i></i><i></i><i></i><i></i><i></i><i></i>
        </div>
      </div>
    </div>
    <div class="bpl-container">
      <div class="bb4-main">
        <ul class="bb4-head">
          <li>总任务</li>
          <li>已完成</li>
          <li>完成率</li>
        </ul>
        <!-- <ul class="bb4-list">
          <li class="bb4-l-each" v-for="(item, index) in infoData.jianCes" :key="index">
            <div class="bb4-le-sup bb4-le-sup1" v-if="item.type === 1">国土空间总体规划</div>
            <div class="bb4-le-sup bb4-le-sup1" v-if="item.type === 2">净地攻坚(公倾)</div>
            <div class="bb4-le-sup bb4-le-sup2" v-if="item.type === 3">农村宅基地和集体土地确权登记任务(本)</div>
            <div class="bb4-le-sub" :class="{'bb4-le-sub1': item.type === 1,'bb4-le-sub2': item.type === 2,'bb4-le-sub3': item.type === 3}">
              <div class="bb4-leb-light"></div>
              <div class="bb4-leb-tri"></div>
              <el-popover
                placement="top-start"
                width="220"
                trigger="hover">
                <ul class="bb4-leb-box">
                  <li>任务完成时限：{{ item.finishLimit }}</li>
                  <li>数据更新时间：{{ item.createTime | formTime }}</li>
                </ul>
                <i class="bb4-leb-ask" slot="reference"></i>
              </el-popover>
              <div class="bb4-leb-word">
                <p>{{ item.totalTaskQuantity }}</p>
                <p>{{ item.finishTaskQuantity }}</p>
                <h6>{{ item.finishRate }}%<span></span></h6>
              </div>
            </div>
          </li>
        </ul> -->
        <ul class="bb4-list">
          <li class="bb4-l-each">
            <div class="bb4-le-sup bb4-le-sup1">疑似无证采矿</div>
            <div class="bb4-le-sub bb4-le-sub1">
              <div class="bb4-leb-light"></div>
              <div class="bb4-leb-tri"></div>
              <div class="bb4-leb-word">
                <p>10</p>
                <p>10</p>
                <h6>100%<span></span></h6>
              </div>
            </div>
          </li>
          <li class="bb4-l-each">
            <div class="bb4-le-sup bb4-le-sup1">耕地卫星监测</div>
            <div class="bb4-le-sub bb4-le-sub2">
              <div class="bb4-leb-light"></div>
              <div class="bb4-leb-tri"></div>
              <div class="bb4-leb-word">
                <p>4620</p>
                <p>899</p>
                <h6>19.24%<span></span></h6>
              </div>
            </div>
          </li>
          <li class="bb4-l-each">
            <div class="bb4-le-sup bb4-le-sup1">农村乱占耕地建房</div>
            <div class="bb4-le-sub bb4-le-sub3">
              <div class="bb4-leb-light"></div>
              <div class="bb4-leb-tri"></div>
              <div class="bb4-leb-word">
                <p>226</p>
                <p>216</p>
                <h6>95.58%<span></span></h6>
              </div>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { Vue, Component, Prop } from 'vue-property-decorator'

@Component({
  name: 'BbItem4',
  components: {
  },
  filters: {
    formTime(val: any) {
      if (!val) return ''
      return Vue.prototype.$format(val)
    }
  }
})
export default class BbItem4 extends Vue {
  @Prop({default: {}}) infoData!: any
  mounted() {}
}
</script>
<style lang="scss" scoped>
@import '~@/styles/cockpit.scss';
.bb-bg {
  width: 100%;
  height: 100%;
  padding: 16px 12px 8px;
  background: url('~@/assets/cockpit/bb-bg.png') no-repeat 0/ 100% 100%;
  .bpl-container {
    padding-top: 8px;
    overflow-x: hidden;
  }
}
.bb4-main {
  width: 100%;
  padding: 0 0 0 60px;
  position: relative;
  z-index: 1;
}
.bb4-head {
  width: 100%;
  padding: 60px 0 0;
  position: absolute;
  left: 0;
  top: 0;
  >li {
    width: 100%;
    height: 24px;
    padding: 0 0 0 8px;
    border-bottom: 1px solid rgba(#fff, .1);
    font-size: 12px;
    line-height: 22px;
    color: #00EAFF;
    text-align: left;
  }
}
.bb4-list {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  .bb4-l-each {
    flex: none;
    width: 120px;
    padding: 36px 0 0 0;
    position: relative;
    .bb4-le-sup1 {
      width: 100%;
      height: 20px;
      background: url('~@/assets/cockpit/bb4-le-sup1.png') no-repeat center center/ 88px 100%;
      font-size: 14px;
      line-height: 20px;
      color: #DFFEFF;
      text-align: center;
      position: absolute;
      top: 8px;
      left: 0;
    }
    .bb4-le-sup2 {
      width: 100%;
      height: 34px;
      background: url('~@/assets/cockpit/bb4-le-sup2.png') no-repeat center center/ 88px 100%;
      font-size: 12px !important;
      line-height: 17px;
      color: #DFFEFF;
      text-align: center;
      position: absolute;
      top: 0px;
      left: 0;
    }
    .bb4-le-sub {
      width: 96px;
      height: 120px;
      position: relative;
      margin: 0 auto;
      .bb4-leb-light {
        width: 142px;
        height: 98px;
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translate(-50%, 0);
        z-index: 5;
        animation: bbLight ease 2s infinite;
      }
      .bb4-leb-tri {
        width: 20px;
        height: 10px;
        background: url('~@/assets/cockpit/bb4-leb-tri.png') no-repeat 0/ 100% 100%;
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translate(-50%, 0);
        z-index: 5;
        animation: bbTri ease 2s infinite;
      }
      .bb4-leb-ask {
        width: 24px;
        height: 24px;
        background: url('~@/assets/cockpit/bb4-leb-ask.png') no-repeat center center/ 37px 37px;
        position: absolute;
        bottom: -5px;
        right: -6px;
        z-index: 5;
      }
      .bb4-leb-word {
        width: 100%;
        position: absolute;
        left: 0;
        top: 24px;
        z-index: 10;
        >p {
          font-size: 14px;
          line-height: 24px;
          color: #fff;
          text-align: center;
        }
        >h6 {
          font-size: 20px;
          line-height: 24px;
          color: #fff;
          text-align: center;
          font-weight: 400;
          >span {
            font-size: 14px;
            color: #fff;
          }
        }
      }
    }
    .bb4-le-sub1 {
      background: url('~@/assets/cockpit/bb4-le-sub1.png') no-repeat 0/ 100% 100%;
      .bb4-leb-light {
        background: url('~@/assets/cockpit/bb4-leb-light1.png') no-repeat 0/ 100% 100%;
      }
    }
    .bb4-le-sub2 {
      background: url('~@/assets/cockpit/bb4-le-sub2.png') no-repeat 0/ 100% 100%;
      .bb4-leb-light {
        background: url('~@/assets/cockpit/bb4-leb-light2.png') no-repeat 0/ 100% 100%;
      }
    }
    .bb4-le-sub3 {
      background: url('~@/assets/cockpit/bb4-le-sub3.png') no-repeat 0/ 100% 100%;
      .bb4-leb-light {
        background: url('~@/assets/cockpit/bb4-leb-light3.png') no-repeat 0/ 100% 100%;
      }
    }
  }
}
.bb4-leb-box {
  >li {
    font-size: 12px !important;
    line-height: 20px;
    color: #262626;
    text-align: left;
  }
}
@keyframes bbLight {
  0% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
  100% {
    opacity: 1;
  }
}
@keyframes bbTri {
  0% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -5px);
  }
  100% {
    transform: translate(-50%, 0);
  }
}
</style>
